package com.rain.entity;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.rain.enums.DateTimePatternEnum;
import com.rain.utils.DateUtil;

/**
 * @auther: rain
 * @description: 
 * @date: 2025-10-31
 */
public class SysRole implements Serializable {

	/**
	 * 
	 */
	private Integer id;

	/**
	 * 角色名称
	 */
	private String name;

	/**
	 * 备注
	 */
	private String remarks;

	/**
	 * 角色级别 1最大
	 */
	private Integer level;

	/**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;

	/**
	 * 更新时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updateTime;

	/**
	 * 删除时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date deleteTime;

	public void setId(Integer id)  { 
		this.id = id;
	}

	public Integer getId( ) { 
		return this.id;
	}

	public void setName(String name)  { 
		this.name = name;
	}

	public String getName( ) { 
		return this.name;
	}

	public void setRemarks(String remarks)  { 
		this.remarks = remarks;
	}

	public String getRemarks( ) { 
		return this.remarks;
	}

	public void setLevel(Integer level)  { 
		this.level = level;
	}

	public Integer getLevel( ) { 
		return this.level;
	}

	public void setCreateTime(Date createTime)  { 
		this.createTime = createTime;
	}

	public Date getCreateTime( ) { 
		return this.createTime;
	}

	public void setUpdateTime(Date updateTime)  { 
		this.updateTime = updateTime;
	}

	public Date getUpdateTime( ) { 
		return this.updateTime;
	}

	public void setDeleteTime(Date deleteTime)  { 
		this.deleteTime = deleteTime;
	}

	public Date getDeleteTime( ) { 
		return this.deleteTime;
	}

	@Override
	public String toString()  {
		return " SysRole { id: " + id + ", " + "name: " + name + ", " + "remarks: " + remarks + ", " + "level: " + level + ", " + "createTime: " + DateUtil.format(createTime, DateTimePatternEnum.YYYY_MM_DD_HH_MM_SS.getPattern()) + ", " + "updateTime: " + DateUtil.format(updateTime, DateTimePatternEnum.YYYY_MM_DD_HH_MM_SS.getPattern()) + ", " + "deleteTime: " + DateUtil.format(deleteTime, DateTimePatternEnum.YYYY_MM_DD_HH_MM_SS.getPattern()) + " } ";
	}
}